//
//  MQPhotoFetchOptions.swift
//  MQAlbum
//
//  Created by 许博 on 2017/4/10.
//  Copyright © 2017年 mechat. All rights reserved.
//

import UIKit
import Photos

class MQPhotoFetchOptions: PHFetchOptions {
    static let shareInstance: MQPhotoFetchOptions = MQPhotoFetchOptions()
    private override init() {
        super.init()
        self.predicate = NSPredicate(format: "mediaType == %d", PHAssetMediaType.image.rawValue)
        self.sortDescriptors = [NSSortDescriptor(key: "creationDate", ascending: false)]
    }
}
